﻿#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "server.h"
#include "client.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent),
      ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_startServerBtn_clicked()
{
    Server *server = new Server();
    server ->startServer();
}

void MainWindow::on_startClientBtn_clicked()
{
    Client *client = new Client();
    client->startClient();
}
